export default defineNuxtRouteMiddleware((to, form) => {
  const token = useCookie('lin-token')
  if (!token.value) {
    console.log('重定向')
    return navigateTo('/login')
  }else{
    console.log('直接进入');
  }
})